﻿@using TinyMoocSite.ViewModels
@model CourseList

@{
    ViewBag.Title = "课程列表";
    Layout = "~/Views/Administrator/FeatureLayout.cshtml";
}

@section CourseManage { active }
@section AccountManage {  }

@section RightContainer
{
    <h4>课程管理</h4><hr />
    <a href="/Administrator/CreateCourse" class="btn btn-primary">创建课程</a>
    <br /><br />

    <table class="table">
        <thead>
            <tr>
                <th>课程编号</th>
                <th>课程名称</th>
                <th>开始时间</th>
                <th>结束时间</th>
                <th>负责人</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            @foreach (CourseShortItem item in Model.CourseItems)
            {
                <tr>
                    <td>@item.CourseId</td>
                    <td>@item.CourseTitle</td>
                    <td>@item.StartTime</td>
                    <td>@item.EndTime</td>
                    <td>@item.Teachers</td>
                    <td>
                        <a href="/Administrator/UpdateCourse?CourseId=@item.CourseId">修改信息</a>&nbsp;&nbsp;
                    </td>
                </tr>
            }
        </tbody>
    </table>
}
